//    Copyright (C) Kherty.  All rights reserved.
using System;
using OpenLS.Core.Serialization;
using OpenLS.Drawing;

namespace OpenLS.Chart
{
    public class UpDownBar : IOfficeXmlSerializableAs
    {
        private ShapeProperties _spPr;


        public void ReadXmlAs(string name, ReadContext context)
        {
            using (var c = context.Read(name))
            {
                _spPr = c.ReadOptionalElement<ShapeProperties>("spPr");
            }

        }

        public void WriteXmlAs(string name, WriteContext context)
        {
            using (var c = context.Write(name))
            {
                c.WriteOptionalElement(_spPr);
            }
        }
    }
}